package com.example.firstboot.service;

import com.example.firstboot.entity.TbSchedule;
import com.example.firstboot.mapper.TbScheduleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TbScheduleService {
    @Resource
    private  TbScheduleMapper tbScheduleMapper;

    public List<TbSchedule> queryMonday(String account) {return tbScheduleMapper.queryMonday(account);};

    public int updatemonday(String account, String monday) {return tbScheduleMapper.updatemonday(account,monday);};

    public int updatetuesday(String account, String tuesday) {return tbScheduleMapper.updatetuesday(account,tuesday);}

    public int updatewednesday(String account, String wednesday) {return tbScheduleMapper.updatewednesday(account,wednesday);}

    public int updatethursday(String account, String thursday) {return tbScheduleMapper.updatethursday(account,thursday);}

    public int updatefriday(String account, String friday) {return tbScheduleMapper.updatefriday(account,friday);}

    public int updatesaturday(String account, String saturday) {return tbScheduleMapper.updatesaturday(account,saturday);}

    public int updatesunday(String account, String sunday) {return tbScheduleMapper.updatesunday(account,sunday);}
}
